package com.qst.mapreduce.wordcount.diliuzhang.sort2;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class SortReduce extends Reducer<SortApp, Text, Text, SortApp> {
    @Override
    protected void reduce(SortApp key, Iterable<Text> values, Reducer<SortApp, Text, Text, SortApp>.Context context) throws IOException, InterruptedException {
        for (Text value : values){
            context.write(value, key);
        }
    }
}
